package com.ruoyi.health.api.domain;

import com.fasterxml.jackson.databind.JsonNode;
import com.ruoyi.mall.api.domian.Product;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.List;

/**
 * 健康监测结果对象 health_analysis_result
 * 
 * @author luogongquan
 * @date 2024-09-19
 */
public class HealthAnalysisResult extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 报告id */
    @Excel(name = "报告id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long reportId;

    /** 检测结果 */
    private JsonNode results;



    /** 检测类型（1=舌诊,2=脉诊） */
    @Excel(name = "检测类型", readConverterExp = "1==舌诊,2=脉诊,3=四诊")
    private String type;

    private List<Product> productList;

    public List<Product> getProductList() {
        return productList;
    }

    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setReportId(Long reportId) 
    {
        this.reportId = reportId;
    }

    public Long getReportId() 
    {
        return reportId;
    }
    public void setResults(JsonNode results)
    {
        this.results = results;
    }

    public JsonNode getResults()
    {
        return results;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("reportId", getReportId())
            .append("results", getResults().toString())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .toString();
    }
}
